<form class="bs-example form-horizontal form-validation" name="form">
    <div class="modal-body form-horizontal form">
        <div class="form-body portlet light">
            <div class="portlet-title clearfloat" style="padding-bottom:10px;border-bottom:1px solid #ececec;">
                <div class="caption font-green-sharp" style="display:inline-block;float:left;">
                    <i class="fa fa-plus"></i>
                    <span class="caption-subject bold uppercase">{{editData?(formDisabled?'查看':'编辑'):'新增'}}成员</span>
                </div>
                <div class="tools" style="float:right; cursor:pointer;">
                    <i class="fa fa-close" ng-click="cancel()"></i>
                </div>
            </div>
            <div class="portlet-body">
                <div class="form-body" style="padding:15px;">
                    <div class="row">
                        <div class="col-md-12  margin-top-15">
                            <!-- form start -->
                            <div class="form-group" ng-if="editData">
                                <label class="col-lg-2 control-label"></label>
                                <div class="col-lg-4">
                                    <img class="thumb-md avatar" ng-src="{{user.headImg}}" />
                                </div>
                            </div>
                            <input type="hidden" class="form-control" ng-model="user.id" >
                            <div class="form-group">
                                <label class="col-lg-2 control-label">用户ID：</label>
                                <div class="col-lg-4">
                                    <input type="number" class="form-control" ng-model="user.userId" ng-disabled="editData" required>
                                </div>
                            </div>
                            <div class="form-group" ng-if="editData">
                                <label class="col-lg-2 control-label">用户昵称：</label>
                                <div class="col-lg-4">
                                    <input type="text" class="form-control" ng-model="user.nickname" disabled="disabled" >
                                </div>
                            </div>
                            <div class="form-group" ng-if="editData">
                                <label class="col-lg-2 control-label">用户余额：</label>
                                <div class="col-lg-4">
                                    <input type="text" class="form-control" ng-model="user.cardNum" disabled="disabled" >
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">备注：</label>
                                <div class="col-lg-4">
                                    <input type="text" class="form-control" ng-model="user.remark" ng-disabled="formDisabled">
                                </div>
                            </div>
                            <!-- form end -->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button class=" btn btn-primary " type="submit" ng-show="!editData||!formDisabled" ng-click="submitApply()">确定</button>
        <button class=" btn  btn-warning" type="button" ng-click="cancel()">关闭</button>
    </div>



</form>